Hash Text
AutomatR.DefaultActivities.Cryptography.HashText
The "Hash Text" activity in AutomatR is part of the Cryptography activities package, providing functionality to apply a specified algorithm to hash a string and obtain the resulting hash as a hexadecimal string representation. This activity enhances security measures by allowing users to hash sensitive information for various purposes within automation workflows.
Properties
Name | Description |
---|---|
Input | |
Algorithm | Selects the hash algorithm to be applied to the input text. Choose from available options such as MD5, RIPEMD160, SHA1, SHA256, SHA384, and SHA512. Enum variables containing the desired algorithm. |
Text | Specifies the text to be hashed. This field only accepts strings and String variables. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Hash Text" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the result of the hashed input stored as a hexadecimal string. String variables to store the hash result for utilization in subsequent activities. |
How to use:
- Drag and drop the "Hash Text" activity onto the workflow.
- Configure the properties by selecting the hash algorithm and specifying the text to be hashed.
- Optionally, configure the delay.
- Execute the workflow to obtain the hash of the specified text using the chosen algorithm.
Example: Consider an example where the "Hash Text" activity is used to hash a text string "SensitiveData123" using the SHA256 algorithm:
Hash Text:
Algorithm: SHA256
Text: "SensitiveData123"
Result: hashedResult
In this example, the activity applies the SHA256 algorithm to hash the text "SensitiveData123," and the resulting hash is stored in the string variable "hashedResult" for further use in the workflow.
Note:
- The activity supports various hash algorithms, allowing users to choose the most suitable one for their security and hashing requirements.
Supported Hash Algorithms
- MD5: Produces a 32-character hexadecimal hash.
- RIPEMD160: Generates a 40-character hexadecimal hash.
- SHA1: Results in a 40-character hexadecimal hash.
- SHA256: Produces a 64-character hexadecimal hash.
- SHA384: Generates a 96-character hexadecimal hash.
- SHA512: Results in a 128-character hexadecimal hash.